import java.util.Arrays;

public class Test {

    public static void main(String[] args) {

    }

    public static String setstring(String str) {
        String p = "";
        for (int i = 0; i < str.length(); i++) {
            char ch = str.charAt(i);
            int i1 = 0;
            for (i1 = 0; i1 < p.length(); i1++) {
                if(p.charAt(i1) == ch) {
                    break;
                }
            }
            if(i1 == p.length()) {
                p += ch;
            }
        }
        return p;
    }

    public static void merge(int A[], int m, int B[], int n) {

        for (int i = 0; i < n; i++) {
            A[m + i] = B[i];
        }
        Arrays.sort(A);
        System.out.println(Arrays.toString(A));
    }
}
